home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
rbbs_pc
/
mapl0301.zip
/
CALLZ.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-03-01
|
2KB
|
70 lines
@Echo Off
REM %1 = prefix/file converting, %2 = node, %3 = extension converting
REM %4 = work path %5 %6 - extract command %7 = actual file path
REM %8 = trailing backslash for arj and lzh files
md %4%2
proecho %node% ~ Now Extracting files from %1.%3~
%5 %6 %7%1 %4%2%8
DEL %7%1.%3
IF EXIST %4%2\File_ID.DIZ Copy %4%2\File_ID.DIZ c:\RBBS
IF EXIST %4%2\DESC.SDI Copy %4%2\DESC.SDI c:\RBBS
pkzip -a -ex %7%1 %4%2\*.*
IF ERRORLEVEL 1 GOTO badupload
:VIRUS
proecho %node% ~ Your file will now be examined for Viruses~
proecho %node% Please wait a moment while we do this.....~
scan /nomem /A %4%2
IF ERRORLEVEL 1 goto VirusCk
seterror 0
goto Good
:VIRUSCK
copy %7%1.ZIP c:\RBBS\virus
del %7%1.zip
proecho %node% ~ The file you uploaded contains a virus.~
proecho %node% Please carefully check you files before uploading!~~
seterror 1
goto exit
:GOOD
proecho %node% ~No Viruses have been found!~
REM The ~ represents a line feed. The below is the suggested amounts.
proecho %node% ~ Setting date of %1.ZIP to the date of most recent date of~
proecho %node% the archive........~
REM recom -o -l c:\rbbs\uploads\logfile -s c:\rbbs\sys\comment.txt %1.zip
proecho %node% ~ Now lets see how old the files in %1.ZIP are.......~~
copy %7%1.ZIP %4%2
zipds %4%2\*.zip
testage %4%2 1990 c:\RBBS\hold
if exist c:\RBBS\hold\%1.zip goto baddates
if not exist c:\RBBS\hold\%1.zip goto thanks
:baddates
proecho %node% At least one of the programs you uploaded is~
proecho %node% more than 2 years old. I will move any old~
proecho %node% programs offline for evaluation by the sysop.~
proecho %node% ~ Please DO NOT upload items over 2 years old.~~
copy %7%1.zip c:\RBBS\hold
del %7%1.ZIP
goto exit
:badupload
proecho %node% Looks like one or more uploads are no good...~
proecho %node% I will move all file(s) you just uploaded~
proecho %node% offline for manual evaluation by the sysop.~
copy %7%1.zip c:\RBBS\hold
del %7%1.zip
goto exit
:thanks
proecho %node% ~Upload file dates are fine. ~~
:EXIT
CTTY CON
kdy %4%2
SETERROR 0
Echo On
c:
cd\RBBS